﻿using System;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using OfficeOpenXml.Table;

namespace NP.BPMReportPlatform.UserTrial.Dto
{
    [ExcelExporter(Name = "报表数据", TableStyle = TableStyles.Light10, AutoFitAllColumn = true)]
    public class GetCourseAbToChinaOutput
    {
        /// <summary>
        /// 境外来华ID
        /// </summary>
        [IEIgnore]
        public string AbroadId { get; set; }

        /// <summary>
        /// 受训员工姓名
        /// </summary>
        [ExporterHeader(DisplayName = "受训员工姓名")]
        public string TrainUserName { get; set; }

        /// <summary>
        /// 护照信息
        /// </summary>
        [ExporterHeader(DisplayName = "护照信息")]
        public string PassportInfo { get; set; }

        /// <summary>
        /// 派遣公司
        /// </summary>
        [ExporterHeader(DisplayName = "派遣公司")]
        public string Company { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [ExporterHeader(DisplayName = "部门")]
        public string DepartMent { get; set; }

        /// <summary>
        /// 职务
        /// </summary>
        [ExporterHeader(DisplayName = "职务")]
        public string Duty { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [IEIgnore]
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 培训年月
        /// </summary>
        [ExporterHeader(DisplayName = "开始时间")]
        public string BeginTimeFormat
        {
            get
            {
                return this.BeginTime?.ToString("yyyy年MM月dd日");
            }
        }

        /// <summary>
        /// 结束时间
        /// </summary>
        [IEIgnore]
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 培训年月
        /// </summary>
        [ExporterHeader(DisplayName = "结束时间")]
        public string EndTimeFormat
        {
            get
            {
                return this.EndTime?.ToString("yyyy年MM月dd日");
            }
        }

        /// <summary>
        /// 附件
        /// </summary>
        [IEIgnore]
        public string AttchMentId { get; set; }

        /// <summary>
        /// 附件名称
        /// </summary>
        [IEIgnore]
        public string AttchMentName { get; set; }
    }
}